/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2010 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 254 2010-07-23 05:14:44Z emartin24 $
 */

jQuery(function ($) {
	// Load dialog on page load
	//$('#basic-modal-content').modal();

	// Load dialog on click
	$('.basic').click(function (e) {
		$('#basic-modal-content').modal();
		mCustomScrollbars();
		$('#txtContentNIV').autoResize({
			// On resize:
			onResize : function() {
				$(this).css({opacity:0.8});
				mCustomScrollbars();
			},
			// After resize:
			animateCallback : function() {
				$(this).css({opacity:1});
				
			},
			// Quite slow animation:
			animateDuration : 300,
			// More extra space:
			extraSpace : 16
		});
		return false;
	});
});